<template>
    <div>
        <rx-select v-model="value">
            <rx-option  v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></rx-option>
        </rx-select>
        <button @click="options.push({value:options.length,label:'bbbb'+options.length})">添加一个选项</button>
        <button @click="options.splice(0,1)">删除一个选项</button>
        value：{{value}}
    </div>
</template>

<script>
export default {
    data() {
      return {
        options: [],
        value: ''
      }
    }
}
</script>

<style>

</style>
